import request from '@/utils/request'

// 查询在线倾诉列表
export function listUnburden(query) {
  return request({
    url: '/consult/unburden/list',
    method: 'get',
    params: query
  })
}

export function mylistUnburden(query) {
  return request({
    url: '/consult/unburden/mylist',
    method: 'get',
    params: query
  })
}

// 查询在线倾诉详细
export function getUnburden(unburdenId) {
  return request({
    url: '/consult/unburden/' + unburdenId,
    method: 'get'
  })
}

// 新增在线倾诉
export function addUnburden(data) {
  return request({
    url: '/consult/unburden',
    method: 'post',
    data: data
  })
}

// 修改在线倾诉
export function updateUnburden(data) {
  return request({
    url: '/consult/unburden',
    method: 'put',
    data: data
  })
}

// 回复在线倾诉
export function updateUnburdenReply(data) {
  return request({
    url: '/consult/unburden/reply',
    method: 'post',
    data: data
  })
}

// 删除在线倾诉
export function delUnburden(unburdenId) {
  return request({
    url: '/consult/unburden/' + unburdenId,
    method: 'delete'
  })
}
